package ch01;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/9/2 11:24
 * @package PACKAGE_NAME
 * @description 文件说明
 */

public class CommArg {
    public static void main(String args[]) {
        // Display command arguments
        int i;

        if (args.length > 0)  //have some command arguments
        {
            for (i = 0; i < args.length; i++) {
                System.out.println("arg[" + i + "] = " + args[i]);
            }
        } else   //no command argument
        {
            System.out.println("No arguments!");
        }
    }
}